package com.sailfish.springbootdemo.service.db1;

import com.sailfish.springbootdemo.pojo.Result;
import com.sailfish.springbootdemo.pojo.db1.PcbaCompany;
import com.sailfish.springbootdemo.pojo.db1.PcbaWorkshop;

import java.util.List;

public interface PcbaWorkshopService {

    /**
     * 根据 pcbaCompanyId 查询所有
     *
     * @param pcbaCompanyId
     * @return
     */
    List<PcbaWorkshop> getAllPcbaWorkshopByCompanyId(String searchValue, Integer pcbaCompanyId);

    /**
     * 删除车间 同时 删除下面 工序
     */
    Result deleteWorkshop(Integer pcbaWorkshopId);

    Result addOrUpdatePcbaWorkshop(String mode, PcbaWorkshop pcbaWorkshop);
}
